objects = packet.o frame.o  database.o
libs = -lm -lcomm -lmysqlclient -ldl
object = ../libs/libframe.so

$(object) : $(objects)
	gcc -Wall -g  -fPIC -shared -o $(object) $(objects) $(libs)  -L../libs -L/usr/lib/mysql

packet.o : ../shared/packet.h
frame.o : frame.h
database.o : database.h

.PHONY : clean
clean :
	rm -f  $(object) $(objects)
